<script setup lang="ts">
import 'highlight.js/styles/stackoverflow-light.css'
import 'highlight.js/lib/common';

useHead({
  title: 'Chat',
  meta: [
    { name: 'description', content: 'Chat Demo' }
  ],
  script: [
    // iconfont生成文件
    { src: '//at.alicdn.com/t/c/font_4565729_ocrr55x0k6d.js' },
  ],
});

// 初始化toast
useToast();

onMounted(() => {
  // 初始化token
  const { initToken } = useToken();
  initToken();
});
</script>

<template>
  <div>
    <NuxtLayout>
      <NuxtPage />
    </NuxtLayout>
  </div>
</template>